add background script to maintain state, messages for js files to talk to each other