title: FileReader: Object is not a function
body: <p>My code - </p>
  
  <pre><code>$selectFile = $('&lt;input type="file"&gt;');
  
  $selectFile.click(function () {
              this.value = null;
  });      
  $selectFile.change(function(event){
      var reader = new FileReader();
      reader.readAsDataURL(event.target.files[0]);
      reader.onloadend(function(e){
          alert(e.result);
      });                           
  });
  </code></pre>
  
  <p>I am getting object is not a function error at <code>reader.onloadend</code> line.</p>
  
  <p>Can anyone help please.</p>