Update CustomEvent

- remove unnecessary attribution
Update Document

- use global var