Here is a trick you can use if two scripts on the same page do not work.
However the trick only works if the script operates on a separate part of the page - i.e. a messagebox.
Just create an iframe and put the script in this page. To get it to look nice you have to adjust the iframe so no scrollbars are shown.