Update Popup.js

add close method