Javascript Aggregate Array Of Objects