build communication on js and oc