title: Object expected Microsoft Jscript Runtime Error- Node js
body: <p>I am learning Node JS and I am getting Object expected at line number 1 Microsoft Jscript Runtime Error while running the code</p>
  
  <pre><code>var fs = require('fs');
  
  function FileObject () {
  this.filename = null;
  this.exists = function(callback) {
  var self = this;
  fs.open(this.filename, 'r', function(err, handle){
  if(err){
  console.log(self.filename+  'does Not exist');
  callback(false);
  }
  else {
  console.log(self.filename+ 'does Exist Indeed');
  callback(true);
  fs.close(handle);
  }
  });
  };
  }
  var fo = new FileObject();
  fo.filename = 'doesnotexist';
  fo.exists(function(does_it_exist) {
  console.log('results from exists:' + does_it_exist);
  });
  </code></pre>