window.js: Simplify hide logic.