Handling Optional Args in JS | Hacker News Reader