Java script not rendered in HTML print

I have an HTML document that uses javascript
If I open the javascript file in a browser (IE\\Chrome etc) it displays the javascript results\\output.

When I print from the browser to a PDF I can see the javascript, BUT when I automate the call or I drag the file into PDFCreator then the javascript is NOT rendered.

I suspect it is not running the javascript when PDFCreator is called directly?

Has anyone else encountered this, does this make sense?