Make layer transparency also work in IE8

There are still people using ancient versions of IE, and even if this shouldn't be supported, here is a fix to let IE8 users enjoy layer transparency as well.
This is also applied to the Leaflet version but not tested.