Read channel value in JavaScript

Please try: 

IR.AddListener(IR.EVENT_TAG_CHANGE , IR.GetDevice("HDL-BUS Pro Network (UDP)"), function(name,value)
{
   if (name == "Relay 1:Channel 3") {
         IR.Log("Channel 3"+value);      
   }
});

Is this article helpful for you?