Update state.js