Changed the JS HTML inserts to use Handlebars JS templates.