Fix for IE 10

And add some cross-browser tests