add Js iteract with java demo and add unit test