made working modifications to location.js. Still sometimes getting timeout error
.