Added some more search.js functions