Added a search function using typeahead.js