Javascript Max Value In Object Array Iterator