Angular Loop Over Array Javascript Iterations