if (("addMethods" in Autocompleter.Base)) {
  Autocompleter.Base.addMethods({
    onBlur: function(event) {
      try {
        setTimeout(this.hide.bind(this), 250);
        this.hasFocus = false;
        this.active   = false;
        if (!new RegExp("\[[A-Z]{3}\]").test(this.element.value)) {
          if (this.getEntry(0).getAttribute("value") != "NAN") {
            this.element.value = this.getEntry(0).firstChild.nodeValue;
          }
        }
      } catch (e) {
        this.hasFocus = false;
        this.active = false;
      }
    }
  });
}
