title: PhantomJS not running Javascript
body: <p>I have a html page that can be accessed with the help of xampp locally on, <a href="http://localhost/testingserver/trelloapi.html" rel="nofollow">http://localhost/testingserver/trelloapi.html</a>.</p>
  
  <p>That page looks like this, when opened in chrome this page loads fine and a card is created on my trello list. I swapped out the my_key etc so in my version I have in its place a long 12345abcsd... </p>
  
  <p><strong>trelloapi.html</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
   &lt;html&gt;
    &lt;head&gt;
      &lt;script src="http://code.jquery.com/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="https://api.trello.com/1/client.js?key={my_key}&amp;token={my_token}"&gt;&lt;/script&gt;
    &lt;/head&gt;
   &lt;body&gt;
  
  &lt;script type="text/javascript"&gt;
  
  var myList = "{my_listId}";
  var creationSuccess = function(data) {
    console.log('Card created successfully. Data returned:' +   JSON.stringify(data));
  };
  var newCard = {
    name: 'Making card from console 0.o', 
    desc: 'This is the description of our new card.',
    // Place this card at the top of our list 
    idList: myList,
    pos: 'top'
  };
  Trello.post('/cards/', newCard, creationSuccess);
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But when I use PhantomJS with the following code, from <a href="http://phantomjs.org/" rel="nofollow">http://phantomjs.org/</a> a card is not created on Trello</p>
  
  <p><strong>phantomcall.js</strong></p>
  
  <pre><code>// Simple Javascript example
  console.log('Loading a web page');
  var page = require('webpage').create();
  var url = 'http://localhost/testingserver/trelloAPI.html';
  page.open(url, function (status) {
    console.log(status);
    //Page is loaded!
    phantom.exit();
  });
  </code></pre>
  
  <p>I downloaded the phantomjs-2.1.1-macosx.zip containing a bin/phantomjs and use the command in terminal:
  $ sudo ./phantomjs ../../../Desktop/testingServer/phantomcall.js </p>
  
  <p>and the following is printed in console:</p>
  
  <p>Loading a web page</p>
  
  <p>success</p>