Using element.querySelectorAll() when necessary