Search index but jquery only working once