Create CompositeStateMachine.js