JSON Web Tokens implemented in pure JavaScript