Use 'sendPluginResult' on iOS.

`writeJavascript` has been deprecated, so use the newer API to shut up the deprecation warnings (and make it forward-compatible).