add require.js and update klass