title: Why can't this simple function run on this object in this javascript state machine?
body: <p>I am using the Stately.js state machine for node.js</p>
  
  <p><a href="https://github.com/fschaefer/Stately.js/" rel="nofollow">https://github.com/fschaefer/Stately.js/</a></p>
  
  <p>I start with a simple example.</p>
  
  <pre><code>var fsm = Stately.machine({
      'START': {
          // event: function () {
          // }
      },
      'NEXT_STATE': {
          // event: function () {
          // }
      },
  });
  
  fsm.setMachineState(fsm.NEXT_STATE);
  </code></pre>
  
  <p>I get the error <code>TypeError: fsm.setMachineState is not a function</code>. What can be wrong? </p>