templates and typeahed.js