uibuilder.onChange() is for receipt of data from Node-RED to the browser. Further, that function has 2 parameters, the first being the event name, the event msg is triggered when a new standard msg is received from node-RED, the 2nd parameter is a function that is called when a msg event is triggered.
As per the documentation, the function you want is uibuilder.send(msgtosend).