code: function(suppliedConfig) {
  
      // Extend the default config with supplied settings
      var newConfig = setDefaults(suppliedConfig);
  
      // Apply presets
      newConfig = applyConfigPreset(newConfig, 'timeDateFormat', newConfig.ui.time_date_format)
      newConfig = applyConfigPreset(newConfig, 'availabilityView', newConfig.ui.availability_view)
  
      // Set default formats for native fields
      newConfig = setCustomerFieldsNativeFormats(newConfig)
  
      // Check for required settings
      if (!newConfig.app_key) throw 'A required config setting ("app_key") was missing';
  
      // Prefill fields based on query string
      var urlParams = getGlobal().location && getGlobal().location.search;
      if (urlParams) newConfig = applyPrefillFromUrlGetParams(newConfig, qs.parse(urlParams));
  
      // Set new config to instance config
      update(newConfig);
  
      return config;
  
    }
docs: Setup config