Moved vars to top of background.js.