JavaScript button click not executing fast enough

I think the issue is that the blur event is firing before the click event occurs, to remedy this you can use the mousedown event which fires before blur:

document.querySelector(".reset").addEventListener("mousedown", function(e) {
  console.log(1)
});