Angular Loop Through Array Javascript Length