How can I add a timeout on popup close. I use the script above, but it closes popup immediately, can i set some timeout? Thank you!