Make NativeEventHandler test compatible with jQuery UI 1.9

In jQuery UI 1.9, $.widget does a lot of setup. We need to call it.