Moved chrome.js to background script.