Jquery Loop Over Array Javascript Push Apply