Replacing underscore map with jQuery map.