Payload Formatting ---- Javascript basics

Hello all…
I am using a SEEED Lora-E5 module and sending ASCII messages to the TTN (testing only)…The messages show up as hexadecimal. I would like to convert the message back to the ascii string. I am very new to this and have never used javascript. I “blindly” grabbed the following function from the internet and tried to add value to decodeUpLink but it doesn’t work…

 function decodeUplink(input) 
 {
	var t = input.toString();
	var str = '';
	for (var i = 0; i < t.length; i+=2)
	{
		str += String.fromCharCode(parseInt(t.substr(i, 2), 16));
	}
  return {
    data: {
      value: str
    },
    warnings: [],
    errors: []
  };
}

Example : Hello ---- 48 65 6C 6C 6F

gives me

{
  "value": "\u0000\u000bì\u0000\u0000\u0000\f\u0000"
}

Can someone tell me what I am missing here?

Test with numbers. No reason to send ASCII.

var input = '48656C6C6F';
var output = Buffer.from(input, 'hex');
console.log(input + " -> " + output);

Check the documentation / tutorial.