Fixed IE8 bug for getElementsByClassName