Using getElementsByClassName and where it's undefined use custome definition
(for IE).