i have a small java script menu i wish to display at the top of some web pages

the code used is:
Code:
<html>
<head>
	<title>Tigra Menu Test</title>
	<script language="JavaScript" src="menu.js"></script>
	<script language="JavaScript" src="menu_items.js"></script>
	<script language="JavaScript" src="menu_tpl.js"></script>
	<link rel="stylesheet" href="menu.css">
</head>
<body>

<script language="JavaScript">
	new menu (MENU_ITEMS, MENU_TPL);
</script>

</body>
</html>
at the minute im just trying to get the damn thing to display in my perl file i have:

Code:
#! c:/perl/bin/perl

use CGI ':standard';

print "Content-type: text/html\n\n";

print <<FOO;
<html>
<head>
	<title>Tigra Menu Test</title>
	<script language="JavaScript" src="menu.js"></script>
	<script language="JavaScript" src="menu_items.js"></script>
	<script language="JavaScript" src="menu_tpl.js"></script>
	<link rel="stylesheet" href="menu.css">
</head>
<body>

<script language="JavaScript">
	new menu (MENU_ITEMS, MENU_TPL);
</script>
TEST TEXT
</body>
</html>
FOO
it is compiling okay and displaying the "TEST TEXT" part when i view the source the info on the java script is displayed:

PAge source:
Code:
<html>
<head>
	<title>Tigra Menu Test</title>
	<script language="JavaScript" src="menu.js"></script>
	<script language="JavaScript" src="menu_items.js"></script>
	<script language="JavaScript" src="menu_tpl.js"></script>
	<link rel="stylesheet" href="menu.css">
</head>

<body>

<script language="JavaScript">
	new menu (MENU_ITEMS, MENU_TPL);
</script>
assssssssasddddddddddddddddddddddasdasd
</body>
</html>
now the javascript menu makes use of a few other files that need to be in the same directory, i have placed these in the htdocs and the cgi-bin thinking that the menu is not displaying as these cant be found but its still not working

Thanks

Antonio