reformatting and simplifying the handlebars autocomplete template