This version is old school.
Please find jQuery plugins on npm.
jQuery Automatic Geocoder
by Tristan Dunn
Automatically geocode and display a location entered in a text field by a user using Google Maps.