If needed, CHUNK_SIZE and MIN_SIZE_FOR_CHUNK_REQUEST (or any other descriptive name) can be moved at the top of the pdf_manager.js.