Update background.js

Compatibility with Chrome versions 20-25 using chrome.extension.sendMessage.