Prepare HTML and Javascript for search.