Use $.ocdialog instead of $.dialog