clean up popup.js