updated driver variable to JavaScript and added selenium-webdriver require