handlebars template had a scope issue