Set the Radix parameter of parseInt to 10 to avoid an issue with phantomjs