function toggleEdit() {
    document.body.classList.toggle('form-rendered', editing)
    if (!editing) {
      $buildWrap.formBuilder('setData', $renderWrap.formRender('userData'))
    } else {
      const formRenderData = $buildWrap.formBuilder('getData', dataType)
      $renderWrap.formRender({
        formData: formRenderData,
        templates: templates,
        dataType,
      })
      window.sessionStorage.setItem('formData', formRenderData)
    }
    editing = !editing
    return editing
  }
Toggles the edit mode for the demo
@return {Boolean} editMode