Fix ios closing

@bantic fix closing of the popup on iOS WIP.

* [x] needs tests 0_p
* [x] make sure it didn't break IE10

Also consolidate the IE post message fix.

Also update the basic example to look at testbuild to it will reload.
for `< IE11`, or just for `IE10`? Looks like we only get in this conditional if we are in IE exactly 10.
If I am reading this correclty, that is: http://www.impressivewebs.com/ie10-css-hacks/#comment-27811