fix(IE): change removal of close button to IE-compatible method