Added Array.map() polyfill to the ArcGIS extension
Refactored code after updating documentation