in reply to
Running JavaScript from within Perl
Maybe also using
PhantomJS
works for you? (it has JavaScript interpretation). Note that it is almost abandoned.
Comment on
Re: Running JavaScript from within Perl
In Section
Seekers of Perl Wisdom