There is a much, much easier way.
Step 1, download Mozilla from mozilla.org (or preferably from one of its mirrors).
Step 2, go to Edit->Preferences, open Advanced and select "Scripts & Windows"
Step 3, uncheck the box Open Windows by themselves, your done.
Another one of my favorites in...