add sanitizeScript and remove unused createHTMLDocument
fix completer