Y Combinator in JavaScript: Memoizing recursive functions | Hacker News Reader