Friendly API for javascript webdriver