Bind event handlers to window instead of body