Thanks to all , the problem was the location of the javascript file, the solution was put it in the htdocs folder
C:\xampp\htdocs and change the line in the perl's scrip who call the .js file
print qq{<script src="http://localhost/basico.js">};
finally all works fine!