Jquery Loop Over Array Javascript Iteration Method