Sets up require.js with main and config