Find Maximum In Array Javascript Methods For Objects