diff --git a/v0.1/clientside/unhosted/unhosted.js b/v0.1/clientside/unhosted/unhosted.js
index <HASH>..<HASH> 100644
--- a/v0.1/clientside/unhosted/unhosted.js
+++ b/v0.1/clientside/unhosted/unhosted.js
@@ -75,7 +75,8 @@ function Unhosted() {
 		return xmlhttp.responseText;
 	}
 	function checkPubSign(cmd, PubSign, nick) {
-		return (makeRsaFromSubNick(nick).doPublic(parseBigInt(PubSign.replace(/[ \n]+/g, ""), 16)).toString(16).replace(/^1f+00/, '') == sha1.hex(cmd));
+		var rsa = makeRsaFromSubNick(nick);
+		return (parseBigInt(PubSign.replace(/[ \n]+/g, ""), 16).modPowInt(rsa.e, rsa.n).toString(16).replace(/^1f+00/, '') == sha1.hex(cmd));
 	}
 	//public:
 	obj.importPub = function(writeCaps, nick) {
brought doPublic into checkPubSign