Updated JSDoc for events, added QUnit tests to test 'this' and event object.