-viewer/engine";// Lead to a folder containing the distributed WASM files
        await Dynamsoft.DDV.Core.loadWasm();
        await Dynamsoft.DDV.Core.init(); 
        docManager = Dynamsoft.DDV.documentManager;
        doc = docManager.createDocument({
          name: "doc"
        });
        captureViewer = new Dynamsoft.DDV.CaptureViewer({
          container: document.getElementById("captureViewer"),
          viewerConfig: {
            enableAutoCapture: false,
            enableAutoDetect: true
   