Fix signature verification

This resolves the problems in the call to decryptAndVerifySignature.

I still get a problem when I do npm test because jquery isn't loaded but that is problably a configuration issue on my machine.