Fix hiding/revealing search results

Master.js for global event handlers, such as this one: being able to hide the search results by clicking "anywhere" on the page.