converted to chrome.extension.onMessage [Fixes #145]