note: the button has not been added to the test page yet. i'm trying to get it to validate before I proceed any further.
Make your script external.
Serving XHTML isn't currently a good idea, though. See this thread for a detailed discussion.