Fix bug DNN-5371: fix js errors in IE8.