BigInteger class from Tom Wu's jsbn library, as an angular service.