Js Reduce Array Of Structures