add closing tag for script