Remove dialog.js dependency