How is this working? Even if I call dispatchEvent on rabbit it still calls the alert. Help me understand how custom events and defaultPrevent works.