Updated the user progress bar javascript