CustomEvent constructor -> createEvent for IE