How to detect if an object has been garbage collected in JavaScript | Hacker News Reader