Javascript Get Max Id From Array Of Objects