Fixed some mistakes in field.js file