Added required detail parameter on initUIEvent - fixes #1

IE10 requires the detail parameter.