Add triggerCustomEvent and related types
Merge pull request #1 from jslang/trigger_custom_event_and_types

Add triggerCustomEvent and related types