Moved all of the lightning_map.html javascript from the .html document to a new lightning.js script that is called in the main html document.