Remove dialogue JS event handling.