Add example of calling Java from JavaScript

Also has some integration issues we need to look at, see TODO comments.