WebDriverJS compatibility changes for Selenium 2.41

Signed-off-by: Jason Leyba <jmleyba@gmail.com>