Cross platform reactive communication channel between JavaScript and native code