handlebars refactoring using coffeescript and template