Using Event constructor instead of createEvent and eventInit
Added fallback support on customEvent
Merge pull request #6 from tehsis/master

Moved from createEvent and initEvent to CustomEvent constructor