Call a function periodically in JavaScript (with memory leak analysis) | Hacker News Reader