title: CasperJS "Syntax error: Parse error"
body: <p>I've just been starting to experiment with CasperJS for some testing purposes, but I'm apparently pretty crappy at it because I've isolated my code down to the very first task,:</p>
  
  <pre><code>"use strict";
  var casper = require('casper').create({
      verbose: true,
      logLevel: 'debug'
      waitTimeout: 10000
  });
  phantom.cookiesEnabled = true;
  
  casper.start('http://foobar.com', function afterstart() {
      if (this.exists('.logo-link')) {
          this.echo('BOOYA! Page is loaded', 'INFO');
      } else {
          this.echo('Page didnt load, something went all screwy.', 'ERROR');
      }
  });
  
  casper.run();
  </code></pre>
  
  <p>run it through a linter, made the appropriate changes, and I still get this error:</p>
  
  <pre><code>Test file: Test.js                                                              
  FAIL SyntaxError: Parse error
  #    type: uncaughtError
  #    error: "SyntaxError: Parse error"
  SyntaxError: Parse error                                                        
  FAIL 1 tests executed in 0.103s, 0 passed, 1 failed.                            
  
  Details for the 1 failed test:
  
  In Test.js:0
  uncaughtError: SyntaxError: Parse error
  </code></pre>
  
  <p>I've looked up some possible explanations, I added the phantom.cookiesEnabled = true, but I simply can't figure it out.</p>