Angular Loop Over Array Javascript Append To String Python