Split background.js into separate files