Fixed SSL errors in newer browsers with jQuery