added handlebars.js and modified main.js to use template