fixed js errors for IE