Change JavaScript from Selenium to Poltergeist

I saw that you wanted to change Selenium to Capybara Webkit. Poltergeist is also webkit driver but runs truly headless instead of a having a Qt dependency. #5