Updating with popup.js