Attempting to fix render issues in IE9

Added some changes to fix render issue in IE9. But need to change render
mode, rather than adding stuff to document.