this tempalte is badly formated.
there is a opening body tag at line 772:
a closing body tag at line 833
<!-- #EndLibraryItem --></div>
and an opening and closing body tag at line 896 - 898:
there should only be one opening body tag at the beginning of the HTML body content and one closing body tag at the end of the HTML body content. The multiple body tags are causing the problem.