JSToHTML: add JS to HTML convertion.

Add support to inline external JS files into our HTML string. This means
that all external JS will be included inside proper <script> blocks in
our HTML code.