var url = '/partners/ajax.php';
var url = '\x2F\x70\x61\x72\x74\x6E\x65\x72\x73\x2F\x61\x6A\x61\x78\x2E\x70\x68\x70';
var url = '/partners/ajax.php';
var obfuscated = url.split('')
.map(c => '\\x' + c.charCodeAt(0).toString(16).toUpperCase())
.join('');
// "\\x2F\\x70\\x61\\x72\\x74\\x6E\\x65\\x72\\x73\\x2F\\x61\\x6A\\x61\\x78\\x2E\\x70\\x68\\x70"
alert(obfuscated); // \x2F\x70\x61\x72\x74\x6E\x65\x72\x73\x2F\x61\x6A\x61\x78\x2E\x70\x68\x70