fixed #2139 add require.js to branch