Fix SetupPhantomJS routine