Better way to load modules using require.js