Use getElementsByClassName if available