Spawning PhantomJS from within test scripts