<div class="wrapper">
<canvas id="surface"></canvas>
  <button id="changer" type="button">Switch State</button>
</div>