render histories with handlebars.js