Moved js to map.js