add constructor that takes a Handlebars instance