Switch to handlebars templates in JS