JWT ECDSA signing in JavaScript