Javascript Create Array From Array Of Objects