move chrome.tabs.getSelected into popup.js