modularize background.js with $.Deferred WIP