Add All Elements In Array Javascript Iteration