Express middleware for ember handlebars