adds search autocomplete using typeahead.js