Adding handlebars middleware