Added logic that prevents clicking within search from closing search
Unbound window.onclick event