Extracted the code we are using from Leaflet out of leaflet, as the complete leaflet library needed to be executed inside a browser and would not work here on server :)