Good idea.  This was original code from Marijn's search.js implementation, but we should clean it up.