JSHint fixes for FSM code.