use native getElementsByClassName if available
Merge pull request #656 from roblarsen/getElementsByClassName

use native getElementsByClassName if available