implemented templating with handlebars