Javascript Loop Through Array Of Objects With Angles