Some fancy magic to hopefully cleanup the html output