externalizing geoserach js