another IE error in js fixed