Remove copy-pasted XHR boilerplate code for now
Use switch statement in getAndDisplaySearchResults instead of if/else if