converted from jquery template to handlebars