Core-JS: Improve close modal windows