fixed #2139 Require.js supports

Require.js supports