background.js implemented, persistent state