https://tutorial.eyehunts.com/js/javascript-map-function/
JavaScript map function