code: function getThemeId(configName) {
      // Search for plugin configured theme
      var configTheme = $.grep(THEMES, function(theme) {
        return theme.config == configName;
      })[0];
      // Fallback to default theme
      return !!configTheme ? configTheme.id : 0;
    }
docs: Return the correct id for a theme config key Default to first theme