Added handling of return values from the evaluateJavaScript method call.