`Uncaught Error: cannot call methods on ocdialog prior to initialization; attempted to call method 'destroy' `