https://saurabhnativeblog.medium.com/debugging-and-fixing-memory-leaks-in-javascript-a-definitive-guide-9126e43295a6