extracts geocode js into javascript file geocode.js