Code cleanup of test.html