Used Jquery instead of prototype for changing captcha image on refresh