function classNamesFn(classes) {
  var cs = '';
  for (var i in classes) {
    cs += (classes[i]) ? i + ' ' : '';
  }
  return cs.trim();
}
Convert Classname object, with class as key and true/false as value, to an
class string.
@param  {Object} classes The classes
@return {String}         class string