fixed an order of instantiation bug, handlebars example