Add window close to popup.js