I'm using `isFinite` to avoid acting on garbage values like `NaN` and`Infinity`. That said, if I rewrote this file in coffeescript it probably wouldn't look much like this.