repair getElementsByClassName bug in ie8