How can you generate public key in html?