<script src="{% static 'js/vote-utils.js' %}"></script>
  <script>
      // Fallback for VoteUtils in case the external script fails to load
      if (typeof VoteUtils === 'undefined') {
          console.warn('VoteUtils not loaded from external file, using inline fallback');
          window.VoteUtils = {
              setButtonLoading: (btn, isLoading) => {
                  btn.disabled = isLoading;
                  btn.classList.toggle('opacity-70', isLoading);
              },

              updateVot