Added background.js to do background tasks; Added bg, removed unnecessary stuff in app.js