I have the below jQuery code. After some progress(say, 30%) the progress bar goes back to 0% and then stop at the same percentage(30%) at which it went back to 0% the first time