title: How to pass data to js-file via $getScript and how to access this data in this called js-file?
body: <p>How can I pass a variable via <code>$getScript()</code> to the called js-file here <code>bfile.js</code>.</p>
  
  <pre><code>var x = new Array();
  $.getScript('bfile.js', x);
  </code></pre>
  
  <p>I called it normally because I read that in the new called javascript file all variables are visible but for the variable <code>x</code>, I get a <em>Uncaught ReferenceError: x is not defined</em>.
  Please help!</p>