Fix bug whonext did nil with window.prompt, revert to alert.