[Study|JavaScript] Add custom event.