added handlebars templating to chart rendering, updated example to use that