add require.js and defineClass and main.js