fixed a bug in xor_hex.js. There is still a bug in xor_hex and xor_strings, wherein the length is not correctly handled.