How to run headless automation scripts using phantom js and watir webdriver