js location fix