use Dialog.js to create dialog in Node.js