Angularjs Loop Through Array Javascript Mdn Mozilla