Fixed the handlebars iterator to produce an output