Fix script tag not being closed