Creating dynamic grid layouts with JS | Hacker News Reader