did you know that getElementsByTagName() returns a live nodelist? I sure didn't. Use document.querySelectorAll() instead