Refs in JavaFunctions