Update!
I worked it out without using WebViews Midi.
It was as simple as calling a javascript function from onController.
function onController()
{
WebView1.callFunction("updateCC", {
"cc":Message.getControllerNumber(),
"value": Message.getControllerValue()
});
}