Changed to Handlebars for html templating and compacted JS