Javascript asynchronous rsa key generation - extends jsbn