title: Import js from script tag in HTML file. Possible?
body: <p>I want to access data from script tag in html file, produced by cms.
  Is it possible to do this without polluting global namespace? 
  I've tried to use es6 modules but I've failed and I couldn't find any info about it.</p>
  
  <pre class="lang-html prettyprint-override"><code>    &lt;script&gt;
          let list = ['a','b','c'];
          export default list
      &lt;/script&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>    //test.js
      import list from './index.html' 
  </code></pre>
  
  <p>Error: 
  '<a href="http://localhost:8080/index.html" rel="noreferrer">http://localhost:8080/index.html</a> net::ERR_ABORTED 404'
  or:
  'Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.'</p>