fixed handleCallToJS in ApiBridge