updated template code and updated SmartTable constructor to register a handlebars helper