Angular Add To Array Javascript Iteration