Add a script stating XHTML namespace, it will run just fine.
<xhtml:script xmlns:xhtml="http://www.w3.org/1999/xhtml"
src="https://stackoverflow.com/questions/384639/file.js"
type="application/javascript"/>
See also
http://www.ibm.com/developerworks/xml/library/x-ffox3/