The html reports need to be usable as email or bugtracker attachments.
This means that <script src="myscript.js"> and <link rel="stylesheet" type="text/css" href="mystyle.css"> are inappropriate.
The fix is simple: inline the code rather than trying to http GET it.