function classList(element) {
    return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' ');
  }
(Internal) Gets a space separated list of the class names on the element. 
The list is wrapped with a single space on each end to facilitate finding 
matches within the list.