Intentando solucioanr error TypeError: document.querySelector(...) is null