title: jsPDF is not defined when saving div to PDF
body: <p>I'm trying to save div element with specific id using jsPDF but getting <code>Uncaught ReferenceError: jsPDF is not defined</code>. Tried bunch of different ways to fix this issue including all available solutions on stackoverflow and none of them worked.</p>
  <p>Here is how the div element looks like (it's a table that autofills depending on user choices, I removed most of options to reduce number of lines for this example). Below is a quick snippet to give an idea what's going on. It still says that jsPDF not deifned:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#savePDF').click(function() {
    var pdf = new jsPDF('p', 'pt', 'letter');
          source = $('#yourSummary');
          specialElementHandlers = {
              '#bypassme': function (element, renderer) {
                  return true
              }
          };
          margins = {
              top: 80,
              bottom: 60,
              left: 40,
              width: 522
          };
          pdf.fromHTML(
              source,
              margins.left,
              margins.top, {
                  'width': margins.width,
                  'elementHandlers': specialElementHandlers
              },
  
              function (dispose) {
                  pdf.save('your-summary.pdf');
              }, margins
          );
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://unpkg.com/jspdf@latest/dist/jspdf.umd.min.js"&gt;&lt;/script&gt;
  &lt;div id="yourSummary" class="modal-body"&gt;
    &lt;table id="yourExterior" class="table table-hover"&gt;
    &lt;h5&gt;Exterior&lt;/h5&gt;
      &lt;tbody&gt;
       &lt;tr&gt;
        &lt;th scope="row"&gt;Body colour&lt;/th&gt;
        &lt;td id="sumBC"&gt;&lt;/td&gt;
       &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  &lt;button class="btn-primary" id="savePDF"&gt;Save configuration as PDF&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>But once I push the button in browser I have following errors:</p>
  <pre><code>Uncaught ReferenceError: jsPDF is not defined
  at HTMLButtonElement.&lt;anonymous&gt; (main.js:34)
  at HTMLButtonElement.dispatch (jquery-3.5.1.slim.min.js:2)
  at HTMLButtonElement.v.handle (jquery-3.5.1.slim.min.js:2)
  </code></pre>
  <p>What am I doing wrong and how to fix this issue?</p>