Rename main.js to global.js