support for response fields in javascript generator