js fix nav update