(function($) { var Autocompleter = function(element, options) { this.$element = $(element); this.options = $.extend({}, $.fn.autocompleter.defaults, options); this.choices = { value: null }; if (typeof this.options.choices === "function") { this.options.choices(this.choices); } else { this.choices.value = this.options.choices(); } this.$menu = $('