text changes and ajax CORS