How to write bulletproof function wrappers in JavaScript | Hacker News Reader