some IE8 JavaScript fix