title: Get Multiple instances of dataset in document.currentScript, But returning null
body: <p>I am storing my json files in script tag. All the data are included in mutiple json files.
  I am getting the data with the help of fetch Api and then converting the response into JSON format.
  But when i try to access the dataset used in the currentScript, the second instance returns null and throws an error in the browser console as 'cannot read properties of undefined'</p>
  <p>Here is the code that i am using</p>
  <pre><code>async function getDataset() {
  const widgetID = document.currentScript.id;
   const wc = &quot;.&quot;+widgetID;
  const fetchConfig = await fetch(document.currentScript.dataset.config);
  const config = await fetchConfig.json();
  const fetchCurrency = await fetch(document.currentScript.dataset.currency);
  const curreny = await fetchCurrency.json();
  }
  </code></pre>
  <p>HTML:</p>
  <pre><code>&lt;script async src=&quot;js/widget.js&quot; data-config=&quot;js/config.json&quot; data-currency=&quot;js/currency.json&quot;&gt;&lt;/script&gt;
  </code></pre>