Figured it out. Yuri answer was a huge hint thank u
It's better to test solution on the other app.
You need just return integer value for the channel.
So in the JS code you can use following:
Also after these changes - check actual request in the browser debugger network tab to make sure you have correct request.