make embedCode into a function rather than a static fixture, so that anon users can see search results #733