Understanding Javascript for Selenium automation (Selenium titbits series)