added dialogs.js for test example