moved dialog.js to assets/js