How JavaScript works: memory management and common memory leaks | Hacker News