Update ajax.lib.php

Add a delay before making request, may avoid multiple request to server when typing search request