Javascript Max Value In Object Array Creation Syntax