js/statemanager.js