Fix trailing script tag