Switched watir to phantomjs for headless browsing