more robust json handlebars helper