Fix for document.createElement invocation in IE7