Perl Parse String Into Array In Javascript Functions W3schools