typeahead.js fixes