How to fetch url parameters using Javascript | Hacker News Reader