fixed search sample (google search api can call callback synchronously)