fixed popup.js