add fields.js, lint, and fix README mixup