index.html: handle escape to hide popup