move location geocoding to JS