Cleaned up background.js