assign, remove and fire a particular event with CustomEvent class
demo for custom event with bubble sort visualization