As for me i need use
onDownloadButtonClicked()
only once, for generating one report. I just removed js file, and in py file i returned route to standard
/web/pivot/export_xlsx
now, when i download any report, my changes that shoud adds only for one report, will exists in all reports, but for me its not critical.