Create derbyStateMachine.js