Polyfill Array.prototype.map