Changes getElementByTag by getElementsByTagName