Fix search in IE7 (reorder initSearch function)

Previously, we were wiring the search form (and therefore doing a search on a `?keyword=`) before the results table existed. This caused an error in IE.

Now we're wiring the table before doing a search.