rewrite to use new chrome.webRequest API