title: Inheriting Node.js' eventemitter fails
body: <p>I'm trying to add the event listener to my class, but it fails, telling me the object has no 'on' method.</p>
  
  <p>Here's the class in its own file:</p>
  
  <pre><code>var events = require('events');
  var util = require('util');
  
  var Motion = function Motion (app) {
  
      events.EventEmitter.call(this);
  
      // Load models
      app.loadModel('motion', 'motion');
  
      this.on('testevent', function () {
          console.log('an event has happened');
      });
  
      this.emit('testevent');
  
  }
  
  util.inherits(Motion, events.EventEmitter);
  
  module.exports = Motion;
  </code></pre>
  
  <p>And here's how I instantiate it:</p>
  
  <pre><code>var Motion = require('./plugins/motion.js');
  var motion = new Motion(app);
  </code></pre>