check http://handlebarsjs.com/ in how to deal with arrays.