code: function applyDefaults(params, defaults) {
      var settings = params || {};
  
      for(var setting in defaults) {
        if(defaults.hasOwnProperty(setting) && !settings[setting]) {
          settings[setting] = defaults[setting];
        }
      }
  
      return settings;
    }
docs: Adds default settings to user-specified params Does not overwrite any settings--only adds defaults the the user did not specify