make typeahead.js template configurable