move script to the mapshow.js