May want to do a parseFloat(x) on these because JS isn't as nice about numbers vs strings like perl is, and I've had weird things happen because of this in my own code.