Add setInterval to progressBar scratch