ParseInt seems to work different in the browser vs phantomjs.