Moving require.js config to main.js