Not much to go on, looking at what is sent it stops with a blank line after the html statement on line 3. If removing that script did not fix it then there is something else changed which you've not noticed but without seeing the raw code it's not possible to tell. Your server should I think be showing some error(s) which would help but we cannot see anything here.
Stuart