JavaScript in XUL as CDATA
<html:script>
<![CDATA[
function lesser(a,b) {
return a < b ? a : b;
}
]]>
</html:script>