That's because the HTML code is separate from javascript. I don't understand your question, because the two things are completely independent. A .html file may contain javascript inside it or make reference to a separate .js file, but nothing is going to change the source at all. That's...
If Windows will not automatically detect the camera and install the driver itself, download the necessary drivers from the camera manufacturers. They should have the latest drivers available for free online.