Create statemodel.js