Move the script outside the element
Map using leaflet