xor encryption decryption javascript