add dialog.js to build