Ajax search with PHP "API"