Cleaned up the html production a bit.