Clear code in createMap.js and main.js