Fix tab reveal issue using js.