edited popup.js  file