Angular Loop Over Array Javascript Append To Dictionary