refactored js to only use leaflet draw for markers and polylines