add polyfill for getElementsByTagName