Use polynomial regression to dynamically position a button | Hacker News Reader