Added detail parameter on initUIEvent to fix IE10 issue

IE10 requires the detail parameter.