I dont understand what you mean by "it just fubars the whole thing".
Does the page not run in the browser?
Do you get an error message?
can you give some mode details beyond "it just fubars the whole thing" so I can understand the issue you are experiencing to try and offer a solution.
please be as descriptive as possible. Also if you could upload the problem page to the server so I could see the issue in a browser, that would be helpful.