AMD compatible version for require.js