moved js for captcha to the view
changed naming convention in the captcha
refactored the captcha component test