Uncommented typeahead js function.