Redirecting to https using jQuery