Using JS to detect exit page? | Hacker News Reader