init and modify popup.js