Adding PhantomJS functionality (in progress)