title: Can an eval access external functions?
body: <p>My company allows us to write code in a javascript editor online.  Other libraries are preloaded, so the code we write has access to these libraries.</p>
  
  <p>Specifically, we can use Underscore.js and jQuery.js functions in our code.  We can also use our very own library Graphie.js.</p>
  
  <p>In an effort to save myself time, I have slowly built up my own personal set of functions which I copy and paste into every code I write.  That set of functions is now so long that I want to fetch it externally (in order to save space, etc).</p>
  
  <pre><code>$.getScript( 'url/to/myfunctions.js' )
  </code></pre>
  
  <p>I tried the above code, but it was too good to be true.  This jQuery function <code>getScript</code> seems to run myfunctions as their own independent unit.  This fails because myfunctions use our Graphie.js functions within them.</p>
  
  <pre><code>$.get( 'url/to/myfunctions', eval )
  </code></pre>
  
  <p>This above code fetches and successfully <code>eval</code>s my code (i configured my server to do so).  Also too good to be true.  Any jQuery and Underscode functions in my code actually work.  But any Graphie functions in my code cause an error.</p>