integrate require.js and test