Stubbing Chained Functions in JavaScript | Hacker News Reader