mark != None }}",
        useBookmarks: "{{ current_user.is_authenticated | tojson }}"
    };

    document.onreadystatechange = function () {
      if (document.readyState == "complete") {
          if (calibre.useBookmarks) {
              currentImage = eval(calibre.bookmark);
              if (typeof currentImage !== 'number') {
                  currentImage = 0;
              }
          }
          init("{{ url_for('web.serve_book', book_id=comicfile, book_format=extension) }}");
      }
    }
  </sc