Unicode to text converter
function unicodeToText(b, endian, backSlashU) {
var d, c = "";
if (!backSlashU) {
c = "\\\\u"
}
return b.replace(new RegExp(c + "([0-9a-fA-F]{4})", "g"), function(e, f) {
d = parseInt(f, 16);
if (endian) {
d = (((d & 255) << 8) | ((d & 65280) >>> 8))
}
return String.fromCharCode(d)
})
}