tesseract.js sample code not working
<p>I'm trying to make Tesseract.js working.</p>

<p>I have taken a very simple code from the web, apprarently declared as working, but it doesn't.</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;script src='https://cdn.rawgit.com/naptha/tesseract.js/1.0.10/dist/tesseract.js'&gt;&lt;/script&gt;
        &lt;title&gt;Tesseract Test&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;label for="fileInput"&gt;Choose File to OCR:&lt;/label&gt;
        &lt;input type="file" id="fileInput" name="fileInput"/&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;div id="document-content"&gt;
        &lt;/div&gt;
    &lt;/body&gt;
    &lt;script&gt;
        document.addEventListener('DOMContentLoaded', function(){
            var fileInput = document.getElementById('fileInput');
            fileInput.addEventListener('change', handleInputChange);
        });

        function handleInputChange(event){
            var input = event.target;
            var file = input.files[0];
            console.log(file);
            Tesseract.recognize(file)
                .progress(function(message){
                    console.log(message);
                })
                .then(function(result){
                    var contentArea = document.getElementById('document-content');
                    console.log(result);
                })
                .catch(function(err){
                    console.error(err);
                });
        }
    &lt;/script&gt;
&lt;/html&gt;
</code></pre>

<p>This is their main website: <a href="http://tesseract.projectnaptha.com/" rel="nofollow noreferrer">http://tesseract.projectnaptha.com/</a></p>