added jsDoc for StateRunner