Update iFSM.js

this._stateDefinition is no more a pointer to a state definition but makes a copy of the state definition