IE8 DOM error, unsupported firstChildElement