added missing dependencies for karma; wait until the DOM is ready before loading the osm map with leaflet