JS to ObjC communication working with callbacks