Some corrections to field.js