Your problem is most likely that your javascript files are contained in a part of the web site that your web server assumes holds ONLY CGI programs; therefore, it tries to execute the javascript files as server-based code. This is a server issue; move the files somewhere else.
Jeff japhy Pinyan,
P.L., P.M., P.O.D, X.S.:
Perl,
regex,
and perlhacker How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart