Added required detail parameter on initUIEvent - fixes #1

IE10 requires the detail parameter.
Merge pull request #2 from missing/master

Added detail parameter on initUIEvent to fix IE10 issue