Selenium and JavaScript Testing Questions