title: object has not method error in javascript
body: <p>I am using following code but it returns following error</p>
  
  <pre><code> Uncaught TypeError: Object [object HTMLAnchorElement] has no method 'userInput'
  </code></pre>
  
  <p>Here is the code <a href="http://jsfiddle.net/4hrx7/" rel="nofollow">jsfiddle</a></p>
  
  <pre><code>var ClickEvent = function (event) {
      this.ev = $('.' + event);
      this.ev.on('click', function () { this.userInput(); });
  };
  
  ClickEvent.prototype = function () {
      return {
          userInput: function () {
              console.log('user');
          },
  
          show: function () {
              console.log('show');
          }
      };   
  }();
  
  var c = new ClickEvent('event');
  </code></pre>
  
  <p>I am calling <code>userInput</code> function inside <code>on()</code> callback function but it returns above <code>error</code>.</p>
  
  <p>How can I solve this problem?</p>