added handlebars helper function