Having trouble determining a JS design pattern for a reusable autocomplete object.