Correct getCurrentLocation

Correct the Javascript