remove the popup.js function