title: Is it possible to choose JavaScript runtime environment (rhino...etc) when sourcing a JavaScript file in html?
body: <p>Is it possible to choose JavaScript runtime environment (rhino...etc) when sourcing a JavaScript file in html ??</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot; src=&quot;file.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>index.html:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html lang=&quot;en&quot;&gt;
  
  &lt;head&gt;
  
  &lt;script src=&quot;file_1.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;file_2.js&quot;&gt;&lt;/script&gt;
  
  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=&quot;&gt;
  
   &lt;title&gt;&lt;/title&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
   &lt;p id=&quot;test&quot;&gt;abc&lt;/p&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>file_1.js:</p>
  <pre><code>window.paragraph = readFile('file_to_read.tcl'); 
  localStorage.setItem(&quot;paragraph&quot;, paragraph);
  
  
   
  </code></pre>
  <p>file_2.js:</p>
  <pre><code>setTimeout(function(){ 
  
   document.getElementById(&quot;test&quot;).innerHTML = window.paragraph;
  
   }, 3000);
  </code></pre>
  <p>need to read the &quot;file_to_read.tcl&quot; and then pass the &quot;paragraph&quot; variable to the second js file &quot;file_2.js&quot;</p>
  <p>but still finding this issue : &quot;ReferenceError: readFile is not defined&quot;</p>
  <p>thanks</p>