in reply to activating javascript with perl
You should do the cpan search JavaScript to see if there is something you can use.
After Compline,Zaxo