divide original procedure of cancelBubble() into individual cancelBubble() and preventDefault()