Fix search js 798

So there is still a weird looking error where it first renders as a <pre> block but that is unrelated and due to the domready call happening before the search.js is loaded.