Changed from using Selenium to using PhantomJS and Poltergeist