ReferenceError: Can't find variable: should be calling method instead
<p>I try to request an URL every 5 seconds. The following code is returning <code>ReferenceError: Can't find variable: validateUserTime</code></p>

<pre><code>$(document).ready(function() {
  ({
    validateUserTime: function() {
      return $.get('/myurl', function(data) {});
    }
  });
  return window.setInterval((function() {
    validateUserTime();
  }), 5000);
});
</code></pre>

<p>I'm wondering what I'm doing wrong that is preventing a call to the method instead of doing it as a variable. Any idea?</p>
