Maps: Some minor changes.
Fixed issue with JS errors and failing to activate charts in pages that are saved to disk from the browser. Closes #2609.