[CB-4799] Fix incorrect JS references within native code on Android & iOS