require.js, solve problems