making webdriver nodejs v6 and v10 compatible