Removing tinyMCE when window is closed