added support for IE 8 (possible fix for #59)