use $.map instead of native .map