Sugar for JavaScript's ugly, ugly timer functions