fixed progress bar js errors