updated leaflet, added retina detection