make compatible with new PhantomJS
Merge pull request #238 from just-boris/fix-localhost

Fix webdriver tests