Added PhantomJS support