Js Get Max Value From Array Of Objects In Java