FYI, these four lines (five lines after you add the missing braces) could be simplified to:

```
m.duration = !m._tobeRemoved || i%2 ? NaN : 2000;
```