better way to check equal html
Fixes for IE9/IE10
speed up tests
fix for ie11