Change main.js to global.js