Added fix for IE7 and IE8

Included in a comment on my blog.  Thanks WishedBy!