Javascript Get Max From Array Of Objects In Angular