title: casperjs: how to retrieve a GET result from Jquery?
body: <p>here is my function</p>
  
  <pre><code>result = casper.evaluate(function() {
          $.get('IP/ajax.php', {a: 'get'}, function (json) {
              return json;
          });
         return 'hello world';
      });
  </code></pre>
  
  <p>Of course result will never get the json result as expected but will always get the "hello world" (or null if I comment the return 'hello world')</p>
  
  <p>Is there an easier way to do that than using some promise in Jquery ?</p>