I just wrote this line about two hours ago and my tests weren't thorough enough to catch the bug it introduced. Just when I thought I knew JavaScript. Thanks for saving me some time.
Always. The moment you don't, all kinds of bugs follow.
I have to go cry now at the number of times this has bitten me.
xs.parseInt(Number)