**Please do not work on this issue unless you have applied to the outreachy project.**

The [simpleviewer.js](https://github.com/mozilla/pdf.js/blob/master/examples/components/simpleviewer.js) example currently uses the older style of `promise.then` and callbacks. Convert it to use an `async` function and `await` style.

scriptingManager: pdfScriptingManager,
  enableScripting: true, 
});
pdfLinkService.setViewer(pdfViewer);
pdfScriptingManager.setViewer(pdfViewer);
eventBus.on("pagesinit", function () {
  
  pdfViewer.currentScaleValue = "page-width";
  
  if (SEARCH_FOR) {
    if (!pdfFindController._onFind) {
      pdfFindController.executeCommand("find", { query: SEARCH_FOR });
    } else {
      eventBus.dispatch("find", { type: "", query: SEARCH_FOR });
    }
  }
});
const loadingTask = pdfjsLib.getDocument({
  url: DEFAULT_URL,
  cMapUrl: CMAP_URL,
  cMapPacked: CMAP_PACKED,
  enableXfa: ENABLE_XFA,
});
loadingTask.promise.then(function (pdfDocument) {
  
  
  pdfViewer.setDocument(pdfDocument);
  pdfLinkService.setDocument(pdfDocument, null);
});