Compatibility with require.js and browsers