added test code for CORS in ajax calls