So I am working on a WordPress tv schedule importer plugin, and I am supposed to edit the code so that while the importing function is running, the buttons innerHTML changes and becomes disabled (unclickable). I got all this however it stays the same even after the importing function ended. How could I restore the button to its original state once the function ended?