Arbitrary precision maths in JS: https://github.com/MikeMcl/bignumber.js/ neat.