Apply html template on typeahead.js