Implementation of handlebars.js for templating.