Is there anyway to allow extra file types to be served by the Http server?

I like the way the live stream works through Java, and I have a way that I use to create the live stream to a website through an IFRAME when I'm online, and for the website to work out if I'm online or not.

The thing is this particular method uses a .JS file served on the HTTP Server I run when I'm online.

An explaination of how it works:

I place these into the < HEAD > tags of the constantly online HTML page (one thats served all the time).