Js/perl answers