Tidy up Handlebars helper