Handlebars.js in a loop completed