Update createDialog.js

Adding backdropCancel support