getElementByTagName does a recursion this is not what is wanted