made use of the chrome.tabs api to get tabs in the current window, rather that doing it myself