fixed issue with script tags and nested title