Refactor keys for goals in background.js