Modeling physics in javascript: gravity and drag | Hacker News Reader