It'd better to avoid using timeout in testing code since it will cause flaky failure.

As discussed with @yongsheng, a better way might be to write a callback function instead of `++successCount`, like
```
function onSuccess() {
  ++successCount;
  if (successCount >= 5)
    document.title = "Pass"
}
```
Sounds good?