Insert Element Into Array Javascript Iterations Of Iphones