removing phantomjs code and trying out webdriver