There were a bunch of tests that had corrupted unit test results because JHtmlTest was having problems in testStylesheet when it was attempting to create a file with the same name as a file created earlier.
Clean up code style and fix some file creation errors in JHtmlTest.
Clean trailing white space
P.S. This whole test needs to be refactored but this is really just phase one so it is possible to read the file easily and also to fix the situation where the same file being tested twice is causing tests to error out.