refactor js and add osgeo and openstreetmap