Use for(var i=0; i<...length; i++ for array responses parsing