resolved script tag close bug