changed the selector for the html node because you may get the conditional comment for IE
updated the test html
added fix for safari 7