How about a simple "onmemory" event that gives js apps a cleanup chance? | Hacker News Reader