negative indexes don't work in javascript
must use new operator to make new Put
Merge pull request #13 from ryanxcharles/bug/multisig-bugs

fix bugs for cosign