WebDriverJS compatibility changes for Selenium 2.41