Leaflet wasn't getting loaded in time