title: How to import/include source files in JavaScript?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4634644/how-to-include-js-file-in-another-js-file">How to include js file in another js file?</a>  </p>
  </blockquote>
  
  
  
  <p>Suppose I have a few JavaScript source files: <code>a.js</code>, <code>a1.js</code>, and <code>a2.js</code>. Functions of <code>a.js</code> invoke functions from <code>a1.js</code> and <code>a2.js</code>.</p>
  
  <p>Now I have to declare <em>all</em> these files in my HTML page. I would like to declare only <code>a.js</code> in the HTML and "import/include" <code>a1.js</code>, and <code>a2.js</code> in the <code>a.js</code> source file.</p>
  
  <p>Does it make sense? Can I do that in JavaScript?</p>