Minor cleanup to search.directives.js.