Converted flat html to handlebars and js files