use native CustomEvent constructor for DOM element