CommonAPI: support JS callbacks on iOS