Js Reduce Object Array Sum C