Finished up background.js for local data