Updated DOM to support IE8+