fix use jquery $.map instead of javascript map