onst cookie = cookies[i].trim();
                      if (cookie.substring(0, name.length + 1) === (name + '=')) {
                          cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                          break;
                      }
                  }
              }
              return cookieValue;
          }

          // Fix form submission for hidden required textareas
          const form = document.getElementById('updateCourseForm');
          form.addEventListene