use native getElementsByClassName if available

Should speed things up a little bit.