Retrieving Data With the JavaScript map Function: an Example