Fix for issue #42 (IE8 support)