How I detect and use localStorage: a simple JavaScript pattern | Hacker News Reader