Complete background.js