fix missing script endtag