https://pvillage.org/archives/3264
How can I call Java method from JavaScript?