Change javascript call from coffeescript to jquery/js; attempt on handlebars template