js: support required_fields
js: support required_fields

reproto/reproto,reproto/reproto,reproto/reproto,reproto/reproto,reproto/reproto,reproto/reproto,reproto/reproto,reproto/reproto,reproto/reproto,reproto/reproto,reproto/reproto