Communicate with PhantomJS in Perl (Capybara+Poltergeist to Perl)