https://tutorial.eyehunts.com/js/javascript-map-max-value-example-code/
JavaScript map max value | Example code