Added CustomEvent constructor feature detect