updates js location.