remove unused code in background.js