State text/map now gets removed upon leaving #map page

Added code in map.js that runs upon leaving the #map page. So when user
leaves the map page, the h3 and #map-canvas divs are emptied (using the
JQuery empty() method). This fixes a bug where the previous state's
text/map were temporarily visible while the new text/map were loading.