Handle failed promises in searchClient.js; fix comments around CORS