Reverting changes to popup.js