Moved map scripts into map.js file.