javascript: object is not a function
<p>I write a module:</p>

<pre><code>window.FileReader = (function () {

        var read = function (file) {
            var reader = new FileReader();

            reader.onload = function (e) {
                console.log(e.target);
            };

            // reader.readAsDataURL(file);
        };

        return {
            read: read
        };
    })();
</code></pre>

<p>but when I execute </p>

<pre><code>FileReader.read()
</code></pre>

<p>it always warn me <code>object is not function</code> at <code>var reader = new FileReader()</code></p>

<p>what's wrong with my code?</p>
