Why does my godaddy web-server serve .htm correctly, but not .js ?
Must I do anything special to tell the host that i's not plain text, but it's actually code..
I have both index.htm and index.js in the same folder
This is index.htm that works when called from my URL in my browser:
<HTML><HEAD><TITLE>Your Title Here</TITLE></HEAD><BODY BGCOLOR="FFFFFF"><CENTER><IMG SRC="clouds.jpg" ALIGN="BOTTOM"> </CENTER><HR><a href="http://somegreatsite.com">Link Name</a>is a link to another nifty site<H1>This is a Header</H1><H2>This is a Medium Header</H2>Send me mail at <a href="mailto:email@example.com">firstname.lastname@example.org</a>.<P> This is a new paragraph!<P> <B>This is a new paragraph!</B><BR> <B><I>This is a new sentence without a paragraph break, in bold italics.</I></B><HR></BODY></HTML>
Instead of .htm, try .html or .php for your file extension + likely problem will resolve.
Also you must rename index.js to something with a MIME type related to HTML.