close script tag properly