Completed the hookup between the Java and JS parts.