Use $.map instead of array.map for IE support