code: function createEnablerCheckbox (api, title, isEnabled, appendTo, callback) {
      var container = document.getElementById(appendTo);
  
      var label = document.createElement('label');
      label.classList.add('topcoat-checkbox');
  
      var checkbox = document.createElement('input');
      checkbox.type = 'checkbox';
      checkbox.value = api;
      checkbox.checked = isEnabled;
      label.htmlFor = checkbox.id = 'enable_' + api;
  
      checkbox.onchange = function (e) {
          e.preventDefault();
          callback(e);
      };
  
      var div = document.createElement('div');
      div.classList.add('topcoat-checkbox__checkmark');
  
      var text = document.createElement('span');
      text.innerText = title;
  
      label.appendChild(checkbox);
      label.appendChild(div);
      label.appendChild(text);
  
      container.appendChild(label);
  }
docs: ***************************************************************************