Fix IE8 js error

I had an js error on 459-460 code lines in Win7 IE8. There is a fix.