Fix for require.js environment