A simple, easy to use JavaScript library for creating "loose" state machines with complete freedom. Multiple StateMachines can be handled by a StateMachineDirector. If you're looking for a standard FSM implementation take a look at the awesome https://github.com/jakesgordon/javascript-state-machine