fixed a bug in search that js causing last minute panic. eek.