I have following page
You can either escape < and > by, respectively < and > or put the whole script in a CDATA section:
rest of the html", someOtherAttribute:"some value"}; obj(some.pageButtonScript); ]]>