Create CaptchaController. Move changeCaptchaAction to CaptchaController. Create captcha.js with script for change Captcha.