Update Field.js with new functions