Writing better conditional expressions in JavaScript | Hacker News Reader