Fix js locking problem that was breaking search (still).