Fix bug DNN-5016: add $.dnnConfirm to wrap dnnConfirm as a static method and can be call directly.