A cross-browser implementation of getElementsByClass.