An attempt to emulate an SSL-like connection using client-side JavaScript crypto