clean up search-save-active.js a bit