code: function getName(script) {
    var script = path.basename(script, path.extname(script)).replace(/[^a-zA-Z0-9]/g, '.')
      , parts = script.split('.')
      , name = parts.shift();
  
    if (parts.length) {
      for (var p in parts) {
        name += parts[p].charAt(0).toUpperCase() + parts[p].substr(1, parts[p].length);
      }
    }
  
    return name;
  }
docs: Get Name - formats name into method-friendly version from script path.
  
  @param script {String} Script location.
  @return name {String} Name of script.