Fix doc typo in xor and add @licence tag to main.js files copyright headers. [ci skip]