fixing javascript nav