Changed to run on PhantomJS