Almost done for search function using ajax