Create dialog.js

file for the dialog to work