Updated searchTask.js