Don't extend Array.prototype with map function

- Can cause issue with some site's script
- Just have a private map function instead
- #1392