added ending tags for script tag