Pruned a lot of extra code out and improved how .html() works.