TDD,JSAPI's and JSEvents