Add Javascript connections to Java class