moved some variables to background window (main.js)
added copyright notices before GPL