Convert $.map to native arr.map
Merge pull request #1933 from mc10/functional

Convert $.map to native arr.map