Changed scope of requirejs in main.js