Angularjs Loop Through Array Javascript Mdn Set