Code cleaning for CAPTCHA