Update dialogue.js

Removed obsolete code