Update leafletEvents.js

Bug fix