dialogue.js cleanup.