Rename _fields as fields.
Add JS dump tests.