Copy changes and bugfix for getting the closing script tag to appear.