renamed background.html to background.js
Updated code for the new version of the plugin api