use bn.js instead of bignum

Like we discussed I would like to not use the native module bignum since it gives major headaches to people using windows.

This PR swaps out bignum for bn.js which is written in js.