CB-4788: Modified the onJsPrompt to warn against Cordova calls