Add state.js ES module with in-memory state (operand1, operand2, selectedOperation, result, error), getters/setters for each property, and a reset() function. Update CLAUDE.md project structure listing.