Replaced getElementsByClassName w/ getElementsByTagName for cross-browser support.