Optimize map call in min.js