fixed js bugs for ie 10