"XML Parsing Error: junk after document element" after clicking table header element

Every time I click on a th element to sort based on the column, or even if I just highlight the text of the th element I get the error in the console.

That said, it does end up sorting the table correctly. The problem is the table turns white (from dark grey) which I suspect is a result of the error.

Is this something that can be fixed?

edit: I think this is the line that it's angry at:

//]]></script><script type="text/javascript">//<![CDATA[

Does no one know what the cause could be?