added support for output as HTML via a handlebars template (courtesy of J.R.) in the new templates folder