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.