Added support for background.js