In-browser HPKA implementation