Fixed bug where the map date that was assigned in a javascript variable was incorrectly written.