Debugging HTML formation