create modules with require.js