The untested version of migrated custom-search.js