Adding getElementsByClassName polyfill to fix IE6/IE7 issue