Prevent the issue of jquery element removing on IE