Migrate current recaptcha library into extension and fix a couple of ts calls