Getting the horizontal and vertical centers of an element | Hacker News Reader