Refactor: extract to notification.js
move to new background