add support for require.js