fixed issues for require.js
fixed issues for require.js