Switching from mechanize to capybara / phantom js