Added a Java class call from JavaScript.