Simplify setting element opacity.

This simplifies setElementOpacity by removing support for the
obsolete, IE-only element.filters property. Also fixes a variable
leaking into the global scope.