xJS: Practical XSS Prevention for Web Application Development
We apply an IO such as the XOR function to effectively randomize and thus isolate all JavaScript source of a web page. The isolation is achieved since all code has been transposed to a new domain: the XOR domain.
Source: ics.forth.gr