update location.js