java-script librarie to capture text and generate an html file.