added type to script tmpls and used handlebars