I need to construct the full block like below in unit test..so  feel adding if is better.

<div id="videoToolBar">
              <button id="seek-backward" class="player-controls-button"></button>
              <button id="play" class="player-controls-button"></button>
              <button id="seek-forward" class="player-controls-button"></button>
            </div>

You really feel to remove this i will change the unit test and remove the if check.