How to check if a variable is a string in JavaScript | Hacker News Reader