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.