for (var key in options) {
    if (this.config.hasOwnProperty(key)) {
      this.config[key] = options[key];
    }
  }