Updating background.js to do likewise