state.js update