Make 'clicking elsewhere' work on iOS Safari. Clicks do not bubble all the way to body in that browser, so attach handler to immediate children of body instead.