[javascript] How to create a dialog with “yes” and “no” options?