updating location coordinates and google maps api js