layout double script closing tag correction