js location update