function classToObject(classes) {
  return classes.split(/\s+/).reduce(function (output, className) {
    output[className] = true;
    return output;
  }, {});
}
Converts a CSS class list into a plain Javascript object.
@param {Array<String>} classes The class list to convert.
@returns {Object}