Javascript Object Array Get Max Value From Hashmap Vs Hashset