How to create a searching script in Javascript | Hacker News Reader