Old browser doesn't have forEach on result of querySelectorAll and getElementsByXXXname

This is only required to add on older browser like IE11, recent browsers might have it querySelectorAll result is NodeList object NodeList.prototype.forEach = Array.prototype.forEach getElementsByTagName, getElementsByClass, etc provide result in HTMLCollection HTMLCollection.prototype.forEach = Array.prototype.forEach