Update dependency versions and add bn.js.