Switch to optional object argument for JS API

The first argument of .sign can now be an object where the key
is the private key and the value of the passphrase key will be
properly used.
Also includes some styling fixes