search.js minor fixes to pass jslint