replace deprecated sendJavascript()