reviewing LeafJSGenerator.java