support ClassDef in LeafJSCodeGen