Using querySelectorAll instead of getElementsByTagName