Yeah, call me crazy, butI don't know a whole lot about javascript, but I'd say that little snippet of code would just close any window that loaded it. Kind of pointless if you ask me.
As for mailing lists, try
Hotscripts. The link goes to Perl scripts (CGI files), but they've got other programs and languages listed if you prefer.