Update fieldstate.js