Backend for AYAH captcha for rich single-page applications