Only apply show/hide toggle JavaScript to `.IndexPage`s.