Selenium Javascript Execute Function Every Second