Mailing popups - JS cleanup