Cleaned up some problems with the html that was getting appended.