make commonJS compatible with require.js