dialog.alert({ title: 'Hello World!', message: 'Click OK to continue.' }).then(success).catch(failure);