Array.prototype.map shim