Fixed issue #19, removed deprecated calls to chrome.tabs.getSelected

and some other tweaks