nit: parseInt(x, 10); (radix will f' you over at some point... thinking about that we probably don't use it somewhere)