add klass.js
add test for klass and event emitter