use $.map instead of native .map
Merge pull request #141 from danmusk/master

use $.map instead of native .map