I am trying to make a Chrome extension, where my background.js injects a third-party .js file and the foreground.js like this:
chrome.tabs.executeScript(null,