pure JavaScript implementation of JSON Web Signature