Rather than having individual calls to runtime.clear/setTimeout, you could make class functions that take care of tracking these. E.g.,
```
function clearTimeout(timer) {
    runtime.clearTimeout(timer);
    delete longPressTimers[timer];
}
```