Compile handlebars templates in a way compatible with Ember.js