Make NativeEventHandler test compatible with jQuery UI 1.9

In jQuery UI 1.9, $.widget does a lot of setup. We need to copy that.
Merge pull request #65 from wmde/jQueryUi19

Make NativeEventHandler test compatible with jQuery UI 1.9