Search: load query onload, display loading message

Previously the query would be loaded when the JSON file had completed
loading. Now we load the query, display a loading message, and then
perform the search.