I'm having a problem with the captcha where it continuously refreshes, very quickly, due to the cookie not being set properly. The refresh timer is being set to a negative value. I've enabled cookies and everything so I'm not sure why this is happening, all I can see is that calculated refresh time is a large negative number, which explains why it refreshes without any delay. Testing now by modifying the function in the dev console, hopefully this sends.