Moved javascript from index.html to undatamap.js