HTML reporter style cleanup

Refactoring duplicate code and doing some general cleanup.

Signed-off-by: Torrey Rice <rice@itorrey.com>