updated js to get the progress bar to show