clean up captcha require lib and html errors