Push Elements In Array Javascript Iterations Math