$(function () {
  if ($('#darts-ui')[0]) {
    window.dartsUi = new DartsUi('#darts-ui');
  }
});

$(function () {
  if ($('#darts-ui')[0]) {
    var dartsUi = new DartsUi('#darts-ui');
    dartsUi.setDebugMode(true);

    window.dartsUi = dartsUi;
  }
});

Enable debug mode in darts-ui
Enable debug mode in darts-ui
