add js struct codegen