IE8 Compatibility

Added shims for arrays.
Removed the use of hasAttribute and string indexers.
Modified the way that nodes are removed from the DOM.