Fix window.prompt scrolling bug