use native getElementsByClassName if available