 # Check arguments of the script.
 #
 if phantom.args.length isnt 1
-  console.log "JasmineResult: #{ JSON.stringify { error: "Wrong usage of PhantomJS script!" } }"
+  console.log JSON.stringify { error: "Wrong usage of PhantomJS script!" }
   phantom.exit()
 else
   url = phantom.args[0]


  else
    # Wait until the Jasmine test is run
    waitFor -> page.evaluate -> if document.body.querySelector '.finished-at' then true else false
    , ->
        # Jasmine test runner has finished, extract the result from the DOM
        page.evaluate ->

      condition = (if typeof testFx is 'string' then eval testFx else testFx())
    else
      if not condition
        console.log JSON.stringify { error: "Timeout requesting Jasmine test runner!" }
        phantom.exit(1)
      else
        if typeof onReady is 'string' then eval onReady else onReady()
