Finished dialogue.js