struggling with stupid ajax