update leaflet tutorial to avoid the broken part of the demo
plus some minor fixes