Fixed IE bugs of js