Please use `for(var i=0; i<rows.length; i++)` syntax to iterate arrays