made genkey function client-side; add sha3.js