Fix progress bar js