Ajax works for JSON files