It seems that the default implementation of js for invisible recaptcha does not work for ajax form. I've modified the original code and it seems to work correctly. It might be useful for someone.
https://gist.github.com/tvaliasek/83a166e5c773cece3b5c7d49a964e030