re-implements window.crypto.signText and exposes it to content