Organized background.js