location update for js