var fsm = new IgeFSM();
// Define an "idle" state
fsm.defineState('idle', {
enter: function (data, completeCallback) {
console.log('entered idle state');
completeCallback();
},
exit: function (data, completeCallback) {
console.log('exited idle state');
completeCallback();
}
});