Update documentElement className when changing page