changed setInterval delay to 5000 and reset counter with a browser refresh