More PhantomJS agent support