code: function toClassName(name) {
    var result = '';
    var upNext = false;
    for (var i = 0; i < name.length; i++) {
      var c = name.charAt(i);
      var valid = /[\w]/.test(c);
      if (!valid) {
        upNext = true;
      } else if (upNext) {
        result += c.toUpperCase();
        upNext = false;
      } else if (result === '') {
        result = c.toUpperCase();
      } else {
        result += c;
      }
    }
    if (/[0-9]/.test(result.charAt(0))) {
      result = '_' + result;
    }
    return result;
  }
docs: Converts a given name into a valid class name