Repeat layout tags in index.html to give scripts.html access to page vars
Fix scripts loading leaflet when theres no location