BigNum in pure javascript