checking for empty json return set and changing ajax endpoint to searchJson