title: How to load a remote js file?
body: <p>test.js file (ex : <a href="http://domain.com/test.js" rel="nofollow">http://domain.com/test.js</a>)</p>
  
  <pre><code>var myjs = function()
  {
       this.getName = function(){
           return 'this is a name';
       }
  }
  </code></pre>
  
  <p>casperjs run.js (windows 7)</p>
  
  <pre><code>var casper = require("casper").create({
      loadImages: false,
      logLevel:   "error", //debug
      verbose:    true
  });
  
  casper.then(function() { // &lt;-- no more run() but then()
      phantom.injectJs('http://domain.com/test.js');
      var my_ = new myjs(casper);
          name = my_.getName();
          this.echo(name);
  });
  </code></pre>
  
  <p>I know, phantom.injectJs does not support <code>http://</code>, but must be used through the website.</p>
  
  <p>I do not know what to do.</p>