jQuery: split out Event constructor in separate object.

This way, it is possible to specialize constructor for certain strings
to return a specific event type.

For example, we do something like this in our application code:

interface JQueryEventConstructor
{
  (name: 'our-event-type', eventProperties?: any): OurEventType;
}