Remove unused code
Restore popupManager.js