added copyright to main.js