Create A New Array From Existing Array Javascript Iteration