Fix ios closing

@bantic fix closing of the popup on iOS WIP.

* [ ] needs tests 0_p
* [ ] 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.